package com.li.service.impl;

import com.li.model.UserModel;
import com.li.mapper.UserMapper;
import com.li.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LRC
 * @since 2021-08-03
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserModel> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<UserModel> getList() {
        return userMapper.getList();
    }

    @Override
    public boolean saveModel(UserModel userModel) {
        return userMapper.saveModel(userModel);
    }
}
